package com.evoplory.statistics;

public class Web implements Comparable<Web>{

    //实现排序接口
    @Override
    public int compareTo(Web o) {
        //按访问量倒序排序
        return o.getCount() - this.getCount();
    }


    //存放页面URL
    private String url;
    //存放页面访问次数
    private Integer count;


    //构造函数
    public Web(String url, Integer count) {
        this.url = url;
        this.count = count;
    }
    public Web(){};


    //get和set方法
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }


}
